var myChart7 = echarts.init(document.getElementById("idx7"))
var option7 = {
    series:[{
        type:'pie',
        center: ['25%','50%'],
        radius: [0,'50%'],
        itemStyle: {
            borderRadius: 8,
        },
        data:[
            {value:70,name:"优"},
            {value:80,name:"良"},
            {value:90,name:"中"},
            {value:100,name:"差"},
        ],
        label:{
            position:'inside',
        },
        roseType: 'area',
    },{
        type:'pie',
        center: ['75%','50%'],
        radius: [0,'40%'],
        data:[1,2,3],
    }],
    
};
myChart7.setOption(option7);
//----------------------------------
var myChart8 = echarts.init(document.getElementById("idx8"))
var idata = [{
    value:1,
    name:'1',
}];
var option8 = {
    series:[{
        type:'pie',
        label: {
            position: 'inside',
        },
        data:idata,
    },
  ]
};
myChart8.setOption(option8);
var i = 0;
var myInterval = setInterval(function(){
    if(idata.length>100){
        idata = [i];
        // clearInterval(myInterval)
    } else{
        idata.push({
            value:idata.length,
            name:String(idata.length),
        });
    }
    
    option8.series[0].data = idata;
    myChart8.setOption(option8);
},400)
//----------------------------------------
var myChart9 = echarts.init(document.getElementById("idx9"))
var start = 90
var option9 = {
    title: {
        text: '0',
        left: 'center',
        bottom: 'center',
    },
    series:[{
        type:'pie',
        radius:['80%','85%'],
        data: [1],
        label:{
            show:false,
        },
        itemStyle:{
            color: 'black',
        },
        
    },{
        type:'pie',
        radius:['60%','65%'],
        data: [1],
        itemStyle: {
            color: 'red',
        },
        label: {
            show: false,
        },
    },{
        type:'pie',
        radius:['70%','75%'],
        startAngle: start,
        data: [1,1],
        label: {
            show: false,
        },
    }]
};
myChart9.setOption(option9);
var i = 0;
var myerval = setInterval(function(){
    option9.title.text = String(i)
    option9.series[2].startAngle = start;
    i++;
    start = start+30;
    i = i%12;
    myChart9.setOption(option9);
},1000)
